<template>
    <section>
        <el-form :model="currObj" label-width="80px" ref="currObj">
            <el-form-item label="LOGO" prop="name">
                <div style="height:10px"></div>
                <el-upload class="avatar-uploader itemImg" action="/file" :show-file-list="false" :on-success="picImgUp">
                    <img v-if="currObj.logoUrl" :src="currObj.logoUrl" class="itemImg">
                    <i v-else class="el-icon-picture itemImg"></i>
                </el-upload>
            </el-form-item>
            <el-form-item label="企业名称" prop="name">
                <el-input v-model="currObj.name" auto-complete="off"></el-input>
            </el-form-item>
            <el-form-item label="编号" prop="name">
                <el-input v-model="currObj.code" auto-complete="off"></el-input>
            </el-form-item>
            <el-form-item label="电话" prop="tell">
                <el-input v-model="currObj.tell" auto-complete="off"></el-input>
            </el-form-item>
            <el-form-item label="邮箱" prop="email">
                <el-input v-model="currObj.email" auto-complete="off"></el-input>
            </el-form-item>
            <el-form-item label="网站" prop="website">
                <el-input v-model="currObj.website" auto-complete="off"></el-input>
            </el-form-item>
            <el-form-item label="联系人" prop="managerName">
                <el-input v-model="currObj.managerName" auto-complete="off"></el-input>
            </el-form-item>
            <el-form-item label="地址">
                <el-cascader :options="addressOptions" v-model="selectedOptions"></el-cascader>
            </el-form-item>
            <el-form-item label="详细地址">
                <el-input type="textarea" v-model="currObj.address.memo"></el-input>
            </el-form-item>
            <el-form-item label="备注">
                <el-input type="textarea" v-model="currObj.memo"></el-input>
            </el-form-item>
        </el-form>
    </section>
</template>
<script src="./companyInfo.js">

</script>
<style lang="scss" scoped>
    .itemImg,
    .itemImg img {
        max-width: 100px;
        max-height: 100px;
        width: 98px;
        height: 98px;
        padding: 0;
        margin: 0;
    }
</style>